package cn.bone.springcloud.service.impl;

import cn.bone.springcloud.service.IPaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackServiceImpl implements IPaymentService {

    public String paymentInfoSuccess(Integer id){

        System.out.println("paymentInfoSuccess()触发了服务降级");
        return "----PaymentFallbackServiceImpl paymentInfoSuccess fall back";
    }


    public String paymentInfoTimeout(Integer id){
        System.out.println("paymentInfoTimeout()触发了服务降级");
        return "----PaymentFallbackServiceImpl paymentInfoTimeout fall back";
    }
}
